package com.edu.entity;

import java.util.List;

/**
 * @author:yj
 * @Date:2024/10/10-11:40
 * @porjectName:Demo1
 */
public class Writer {
    private int wId;
    private String wName;
    private String wSex;
    private int wAge;
    private List<Book> books;
    private List<Press> press;

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public List<Press> getPress() {
        return press;
    }

    public void setPress(List<Press> press) {
        this.press = press;
    }

    public int getwId() {
        return wId;
    }

    public void setwId(int wId) {
        this.wId = wId;
    }

    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    public String getwSex() {
        return wSex;
    }

    public void setwSex(String wSex) {
        this.wSex = wSex;
    }

    public int getwAge() {
        return wAge;
    }

    public void setwAge(int wAge) {
        this.wAge = wAge;
    }

    @Override
    public String toString() {
        return "Writer{" +
                "wId=" + wId +
                ", wName='" + wName + '\'' +
                ", wSex='" + wSex + '\'' +
                ", wAge=" + wAge +
                '}';
    }

    public Writer() {
    }
}
